package com.aistar.service.resume.impl;

import com.aistar.mapper.AwardMapper;
import com.aistar.mapper.EducationMapper;
import com.aistar.mapper.InternMapper;
import com.aistar.mapper.ProjectMapper;
import com.aistar.model.entity.Award;
import com.aistar.model.entity.Education;
import com.aistar.model.entity.Intern;
import com.aistar.model.entity.Project;
import com.aistar.service.resume.IInsertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class InsertServiceImpl implements IInsertService {
    @Autowired
    private InternMapper internMapper;
    @Autowired
    private ProjectMapper projectMapper;
    @Autowired
    private AwardMapper awardMapper;
    @Autowired
    private EducationMapper educationMapper;
    @Override
    public Integer insertEducation(Education education) {
        return educationMapper.insertEducation(education);
    }

    @Override
    public Integer insertIntern(Intern intern) {
        return internMapper.insertIntern(intern);
    }

    @Override
    public Integer insertProject(Project project) {
        return projectMapper.insertProject(project);
    }

    @Override
    public Integer insertAward(Award award) {
        return awardMapper.insertAward(award);
    }
}
